package com.shiguiwu.springmybatis.designpattern.composite;

/**
 * @description: 组合模式
 * 定义：讲对象组织成树结构，可以用来描述整体和部分的关系。让客户端单个对象和组合对象同等看待。
 * @author: stone
 * @date: Created by 2021/2/25 22:46
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.designpattern.composite
 */
public class CompositeTests {

    public static void main(String[] args) {

        Catalog file = new File("java设计模式", "pdf", 12.5);

        file.print();

        Catalog folder = new Folder();
    }
}
